<?php

class Default_CaptchaController extends Ext_Controller_Action_Front
{
    public function init()
    {
    }
    
    public function createAction()
    {
        $viewResult = new Ext_View_Result();
        
        $captcha = Ext_Captcha_Show::getInstance()->buildOnlyCaptcha();
        $captcha->generate();

        $data = array(
            'url' => $captcha->getImgUrl() . $captcha->getId() . $captcha->getSuffix(),
            'id'  => $captcha->getId(),
        );
        $viewResult->setData($data);
        $viewResult->setResult(1);
        $viewResult->setNoRender();
    }
}

?>